package com.bigger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "business")
public class Business implements Serializable {
    /**
     * 上架业务
     */
    public static final Integer UP_BUSINESS=1;
    /**
     * 下架业务
     */
    public static final Integer DOWN_BUSINESS=2;
    private static final long serialVersionUID = 1L;
    // 业务ID
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    // 业务名称
    private String name;
    private String image;
    // 业务价格
    private Double price;
    // 业务状态
    private Integer status;
    // 业务信息
    private String info;
    // 创建时间
    private LocalDateTime createTime;
    // 更新时间
    private LocalDateTime updateTime;
    // 创建用户
    private Long createUser;
    // 更新用户
    private Long updateUser;
}
